package com.ruoyi.system.service.impl;

import java.util.List;
import java.util.Arrays;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.IotCubeLcValveMapper;
import com.ruoyi.system.domain.IotCubeLcValve;
import com.ruoyi.system.service.IIotCubeLcValveService;

/**
 * IoT数据_六面控温水冷机组阀门数据Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-04-02
 */
@Service
public class IotCubeLcValveServiceImpl extends ServiceImpl<IotCubeLcValveMapper,IotCubeLcValve> implements IIotCubeLcValveService
{
    @Autowired
    private IotCubeLcValveMapper iotCubeLcValveMapper;

    /**
     * 查询IoT数据_六面控温水冷机组阀门数据
     * 
     * @param id IoT数据_六面控温水冷机组阀门数据主键
     * @return IoT数据_六面控温水冷机组阀门数据
     */
    @Override
    public IotCubeLcValve selectIotCubeLcValveById(Long id)
    {
        return this.getById(id);
    }

    /**
     * 查询IoT数据_六面控温水冷机组阀门数据列表
     * 
     * @param iotCubeLcValve IoT数据_六面控温水冷机组阀门数据
     * @return IoT数据_六面控温水冷机组阀门数据
     */
    @Override
    public List<IotCubeLcValve> selectIotCubeLcValveList(IotCubeLcValve iotCubeLcValve)
    {
        return iotCubeLcValveMapper.selectIotCubeLcValveList(iotCubeLcValve);
    }

    /**
     * 新增IoT数据_六面控温水冷机组阀门数据
     * 
     * @param iotCubeLcValve IoT数据_六面控温水冷机组阀门数据
     * @return 结果
     */
    @Override
    public boolean insertIotCubeLcValve(IotCubeLcValve iotCubeLcValve)
    {
        return this.save(iotCubeLcValve);
    }

    /**
     * 修改IoT数据_六面控温水冷机组阀门数据
     * 
     * @param iotCubeLcValve IoT数据_六面控温水冷机组阀门数据
     * @return 结果
     */
    @Override
    public boolean updateIotCubeLcValve(IotCubeLcValve iotCubeLcValve)
    {
        return this.updateById(iotCubeLcValve);
    }

    /**
     * 批量删除IoT数据_六面控温水冷机组阀门数据
     * 
     * @param ids 需要删除的IoT数据_六面控温水冷机组阀门数据主键
     * @return 结果
     */
    @Override
    public boolean deleteIotCubeLcValveByIds(Long[] ids)
    {
        return super.removeByIds(Arrays.asList(ids));
    }

    /**
     * 删除IoT数据_六面控温水冷机组阀门数据信息
     * 
     * @param id IoT数据_六面控温水冷机组阀门数据主键
     * @return 结果
     */
    @Override
    public boolean deleteIotCubeLcValveById(Long id)
    {
        return this.removeById(id);
    }
}
